import Vue from 'vue'
import app from './app.vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'

Vue.use(VueResource)
Vue.use(VueRouter)
Vue.http.options.root="http://localhost:5000"

//导入bootstrap
import 'bootstrap/dist/css/bootstrap.css'
//导入mui
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'
// 导入mintui组件
import { Header, Tabbar, TabItem, Swipe, SwipeItem, Button } from 'mint-ui';

Vue.component(Header.name, Header);
Vue.component(Tabbar.name, Tabbar);
Vue.component(TabItem.name, TabItem);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);

import router from './router.js'

var vm=new Vue({
	el:"#vv",
	render:r=>r(app),
	router
})